<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>转让书籍搜索：{{ $search_text }} - 夜读书城</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="author" content="夜读书">
    <meta name="description" content="夜读书中文网">
    <meta name="keywords" content="书城,读书,阅读,小说,文学">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="{{ asset('/bootstrap-3.3.5-dist/css/bootstrap.min.css') }}">
    <link rel="stylesheet" href="{{ asset('/style/css/yds.css') }}">
    <link rel="stylesheet" href="{{ asset('/style/css/bookshop.css') }}">
    <script src="{{ asset('/scripts/jquery/jquery-1.11.3.min.js') }}"></script>
    <script src="{{ asset('/bootstrap-3.3.5-dist/js/bootstrap.min.js') }}"></script>
</head>
<body class="docs">
@include('books.partials.navtop')
@include('books.partials.navshopsearch_text')

<div class="docs-wrapper container">

    <article>
        <div id="shoplist">
        @if ($shoplists->count() != 0)
        @foreach ($shoplists as $shoplist)
            {{-- J借阅，E交换，S出售，Z赠送，B以上均可 --}}
            @if($shoplist->otype == 'J')
                    <?php $otype_txt = '借阅'; ?>
            @elseif($shoplist->otype == 'E')
                    <?php $otype_txt = '交换'; ?>
            @elseif($shoplist->otype == 'S')
                    <?php $otype_txt = '￥' . $shoplist->nowprice; ?>
            @elseif($shoplist->otype == 'Z')
                    <?php $otype_txt = '赠送'; ?>
            @else
                    <?php $otype_txt = '￥' . $shoplist->nowprice; ?>
            @endif
            <div class="booksbox">
                <a href="{{url('shopinfo/' . $shoplist->id)}}" target="_blank">
                <img class="bimg" src="{{url($shoplist->books->bimg)}}"></img>
                </a>
                <dl class="bookinfo">
                    <dt class="btitle"><a href="{{url('shopinfo/' . $shoplist->id)}}" target="_blank">{{$shoplist->books->book_name}}</a></dt>
                    <dt class="publisher_info">{{$shoplist->books->zuozhe}} / {{$shoplist->books->yizhe}} / {{$shoplist->books->chubanshe}} / {{$shoplist->books->chubannian}} / {{$shoplist->books->zhuangzhen}} / {{$shoplist->books->isbn}}</dt>
                    <dt class="pice">
                        <span class="price_n">{{$otype_txt}}</span>
                        <span class="price_r">￥{{$shoplist->books->dingjia}}</span>
                    </dt>
                </dl>
                <div style="clear:both"></div>
            </div>
        @endforeach
        </div>  
        {!! $shoplists->appends(['search_text' => $search_text])->render() !!}
        @else
            您搜索的图书暂时没有人转让！
        @endif
    </article>

    <section class="sidebar">
        @include('books.partials.right')
    </section>

</div>

@include('books.partials.footer')

</body>
</html>
